using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Patient_AdditionalTests : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsCallback)
        {
            mvAdditionalTests.SetActiveView(vPatient);
        }
    }

    protected void ddlPatients_SelectedIndexChanged(object sender, EventArgs e)
    {
        mvAdditionalTests.SetActiveView(vAdditionalTests);
    }

    protected void btnPreviouseUrina_Click(object sender, EventArgs e)
    {
        mvAdditionalTests.SetActiveView(vAdditionalTests);
    }

    protected void dvUrina_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }

    protected void dvBloodPicture_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }

    protected void dvHomeostaza_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }

    protected void dvRUE_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }

    protected void dvProteinograma_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }

    protected void dvMastnaObmqna_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }

    protected void dvNatatacno_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
    protected void dvKrSugar_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }

    protected void DetailsViewCommand(string command)
    {
        switch (command)
        {
            case "Insert":
                mvAdditionalTests.SetActiveView(vAdditionalTests);
                break;
            case "Cancel":
                mvAdditionalTests.SetActiveView(vPatient);
                ddlPatients.DataBind();
                break;
            case "Update":
                mvAdditionalTests.SetActiveView(vAdditionalTests);
                break;
            default: break;
        }
    }

    protected void btnBackToPatients_Click(object sender, EventArgs e)
    {
        mvAdditionalTests.SetActiveView(vPatient);
        ddlPatients.DataBind();
    }


    protected void dvOBA_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
    protected void dvEnsim_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
    protected void dvHormoni_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
    protected void dvMineralna_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
    protected void dvBio_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
    protected void dvSugarProfile_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
    protected void dvAlergic_ItemCommand(object sender, DetailsViewCommandEventArgs e)
    {
        string command = e.CommandName;
        DetailsViewCommand(command);
    }
}
